<template>
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="black">
        <van-swipe-item>
            <img :src="images[0]" alt="" style="width: 100%; height: 100%">
        </van-swipe-item>
        <van-swipe-item>
            <img :src="images[1]" alt="" style="width: 100%; height: 100%">
        </van-swipe-item>
        <van-swipe-item>
            <img :src="images[2]" alt="" style="width: 100%; height: 100%">
        </van-swipe-item>
    </van-swipe>
</template>

<script setup>
const images = [
    'https://fastly.jsdelivr.net/npm/@vant/assets/apple-1.jpeg',
    'https://fastly.jsdelivr.net/npm/@vant/assets/apple-2.jpeg',
    'https://fastly.jsdelivr.net/npm/@vant/assets/apple-3.jpeg',
];
</script>

<style>
.my-swipe .van-swipe-item {
    color: #fff;
    font-size: 20px;
    line-height: 150px;
    text-align: center;
    height: 200px;
}
</style>